import 'package:flutter/material.dart';

mixin DDStateDidLoadMixin<T extends StatefulWidget> on State<T> {
  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance!.addPostFrameCallback((_) => widgetDidLoad(context));
  }

  /// 和iOS的viewDidLoad一样
  void widgetDidLoad(BuildContext context);
}
